package com.zzt.zt_lifecycle;

import android.util.Log;

import androidx.annotation.NonNull;
import androidx.lifecycle.DefaultLifecycleObserver;
import androidx.lifecycle.LifecycleOwner;

/**
 * @author: zeting
 * @date: 2022/12/19
 */
public class MLifecycleV2 implements DefaultLifecycleObserver {
    private static final String TAG = "Lifecycle  MLifecycleV1";

    @Override
    public void onCreate(@NonNull LifecycleOwner owner) {
        Log.w(TAG, ">>>>>>> onCreate owner:" + owner);
    }

    @Override
    public void onStart(@NonNull LifecycleOwner owner) {
        Log.w(TAG, ">>>>>>> onStart owner:" + owner);

    }

    @Override
    public void onResume(@NonNull LifecycleOwner owner) {

        Log.w(TAG, ">>>>>>> onResume owner:" + owner);
    }

    @Override
    public void onPause(@NonNull LifecycleOwner owner) {

        Log.w(TAG, ">>>>>>> onPause owner:" + owner);
    }

    @Override
    public void onStop(@NonNull LifecycleOwner owner) {

        Log.w(TAG, ">>>>>>> onStop owner:" + owner);
    }

    @Override
    public void onDestroy(@NonNull LifecycleOwner owner) {

        Log.w(TAG, ">>>>>>> onDestroy owner:" + owner);
    }
}
